this.BX=this.BX||{};this.BX.Landing=this.BX.Landing||{};this.BX.Landing.UI=this.BX.Landing.UI||{};(function(e,t,n){"use strict";var i;var a=function(e){babelHelpers.inherits(n,e);function n(e){var i;babelHelpers.classCallCheck(this,n);i=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(n).call(this,e));t.Dom.addClass(i.layout,"landing-ui-field-textarea");i.onContentChange=i.onContentChange.bind(babelHelpers.assertThisInitialized(i));i.onMousewheel=i.onMousewheel.bind(babelHelpers.assertThisInitialized(i));t.Event.bind(i.input,"input",i.onContentChange);t.Event.bind(i.input,"keydown",i.onContentChange);t.Event.bind(i.input,"mousewheel",i.onMousewheel);i.input.value=t.Text.encode(i.content);if(t.Type.isNumber(i.options.height)){t.Dom.style(i.input,"min-height","".concat(i.options.height,"px"))}setTimeout((function(){i.adjustHeight()}),20);return i}babelHelpers.createClass(n,[{key:"createInput",value:function e(){return t.Tag.render(i||(i=babelHelpers.taggedTemplateLiteral(['\n\t\t\t<textarea class="landing-ui-field-input">',"</textarea>\n\t\t"])),this.content)}},{key:"onMousewheel",value:function e(t){t.stopPropagation()}},{key:"onPaste",value:function e(){}},{key:"onContentChange",value:function e(){this.adjustHeight();this.onValueChangeHandler(this)}},{key:"adjustHeight",value:function e(){this.input.style.height="0px";this.input.style.height="".concat(Math.min(this.input.scrollHeight,180),"px")}},{key:"getValue",value:function e(){return this.input.value}}]);return n}(n.BaseField);e.TextareaField=a})(this.BX.Landing.UI.Field=this.BX.Landing.UI.Field||{},BX,BX.Landing.UI.Field);
//# sourceMappingURL=textareafield.bundle.map.js